<script setup>

import {ref} from "vue";

let initDatasourceForm = ref({})
</script>

<template>
  <div>
    <el-form ref="form" :model="initDatasourceForm" label-width="80px">
      <el-form-item label="数据库">
        <el-select v-model="initDatasourceForm.type">
          <el-option label="Postgresql" value="Postgresql"/>
        </el-select>
      </el-form-item>
      <el-form-item label="ip">
        <el-input v-model="initDatasourceForm.ip"></el-input>
      </el-form-item>
      <el-form-item label="port">
        <el-input v-model="initDatasourceForm.port"></el-input>
      </el-form-item>
      <el-form-item label="username">
        <el-input v-model="initDatasourceForm.username"></el-input>
      </el-form-item>
      <el-form-item label="password">
        <el-input v-model="initDatasourceForm.password"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="handleViewSave">Save</el-button>
        <el-button @click="showViewForm = false">Cancel</el-button>
      </el-form-item>
    </el-form>

  </div>
</template>

<style scoped>

</style>